<% @projects.each do |project| %>
  <%= render :file => 'projects/project_in_index.html', :locals => { :project => project} %>
<% end %>
<% if @projects.empty? %>
<div class="no_records">查无此项目</div>
<% end %>
<script>
  $('title').update('<%= params[:pay_status] ? "#{params[:payed_year].present? ? "#{params[:payed_year]}年 ":'' }#{(t params[:pay_status])}":'全部' %>-项目');
  <% if params[:pay_status] == 'paying' or params[:pay_status] == 'paused' %>
    $('print').update('<%= link_to "▶打印", print_many_projects_url(:pay_status =>params[:pay_status]), :class => :base, :target => :_blank %>');
  <% else %>
    $('print').update("");
  <% end   %>
</script>